package com.mm.common.utils;

import org.springframework.context.ApplicationContext;

/**
 * @Program: 8.mindmap
 * @Author: 海里的鱼
 * @Create: 2024-08-29 16:58
 * @Name: 容器工具类
 * @Desc: 需要你在启动类中，手动的添加容器
 */
public class ContextUtil {
    private static ApplicationContext context;

    public static ApplicationContext getContext() {
        return context;
    }

    public static void setContext(ApplicationContext context) {
        ContextUtil.context = context;
    }
}
